package com.ruoyi.common.core.cg.pojo;



import org.apache.poi.hpsf.Decimal;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName community
 */
public class Community implements Serializable {
    /**
     *
     */
    private Integer id;

    public Leader getLeader() {
        return leader;
    }

    public void setLeader(Leader leader) {
        this.leader = leader;
    }

    private Leader leader;
    /**
     * 社区名称
     */
    private String title;

    /**
     * 社区人数
     */
    private Integer member;

    /**
     * 团长外键
     */
    private Integer leaderId;

    /**
     * 经度
     */
    private String lat;

    /**
     * 纬度
     */
    private String lng;

    /**
     * 地址
     */
    private String address;
    private Integer pageNum;
    private Integer pageSize;

    @Override
    public String toString() {
        return "Community{" +
                "id=" + id +
                ", leader=" + leader +
                ", title='" + title + '\'' +
                ", member=" + member +
                ", leaderId=" + leaderId +
                ", lat='" + lat + '\'' +
                ", lng='" + lng + '\'' +
                ", address='" + address + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", uid=" + uid +
                ", createTime=" + createTime +
                ", LeaderName='" + LeaderName + '\'' +
                ", StoreCount=" + StoreCount +
                ", groupCount=" + groupCount +
                ", userCount=" + userCount +
                ", orderCount1=" + orderCount1 +
                ", orderCount0=" + orderCount0 +
                ", money=" + money +
                ", qqMapId='" + qqMapId + '\'' +
                ", _distance=" + _distance +
                '}';
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 浏览器存放的uid
     */
    private Integer uid;

    /**
     * 创建时间
     */
    private Date createTime;

    //    存放负责人
    private String LeaderName;
    //    存放店铺数量
    private Integer StoreCount;
    //    存放拼团数量
    private Integer groupCount;
    //    存放成员数量
    private Integer userCount;
    //    存放订单未提货数量
    private Integer orderCount1;
    //    存放订单未提货数量
    private Integer orderCount0;
    //    存放消费的总金额
    private BigDecimal money;
    private String qqMapId;
    private BigDecimal _distance;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public BigDecimal get_distance() {
        return _distance;
    }

    public void set_distance(BigDecimal _distance) {
        this._distance = _distance;
    }

    public String getQqMapId() {
        return qqMapId;
    }

    public void setQqMapId(String qqMapId) {
        this.qqMapId = qqMapId;
    }

    public String getLeaderName() {
        return LeaderName;
    }

    public void setLeaderName(String leaderName) {
        LeaderName = leaderName;
    }

    public Integer getStoreCount() {
        return StoreCount;
    }

    public void setStoreCount(Integer storeCount) {
        StoreCount = storeCount;
    }

    public Integer getGroupCount() {
        return groupCount;
    }

    public void setGroupCount(Integer groupCount) {
        this.groupCount = groupCount;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public Integer getOrderCount1() {
        return orderCount1;
    }

    public void setOrderCount1(Integer orderCount1) {
        this.orderCount1 = orderCount1;
    }

    public Integer getOrderCount0() {
        return orderCount0;
    }

    public void setOrderCount0(Integer orderCount0) {
        this.orderCount0 = orderCount0;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 社区名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 社区名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 社区人数
     */
    public Integer getMember() {
        return member;
    }

    /**
     * 社区人数
     */
    public void setMember(Integer member) {
        this.member = member;
    }

    /**
     * 团长外键
     */
    public Integer getLeaderId() {
        return leaderId;
    }

    /**
     * 团长外键
     */
    public void setLeaderId(Integer leaderId) {
        this.leaderId = leaderId;
    }

    /**
     * 经度
     */
    public String getLat() {
        return lat;
    }

    /**
     * 经度
     */
    public void setLat(String lat) {
        this.lat = lat;
    }

    /**
     * 纬度
     */
    public String getLng() {
        return lng;
    }

    /**
     * 纬度
     */
    public void setLng(String lng) {
        this.lng = lng;
    }

    /**
     * 地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Community other = (Community) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getMember() == null ? other.getMember() == null : this.getMember().equals(other.getMember()))
            && (this.getLeaderId() == null ? other.getLeaderId() == null : this.getLeaderId().equals(other.getLeaderId()))
            && (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
            && (this.getLng() == null ? other.getLng() == null : this.getLng().equals(other.getLng()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getMember() == null) ? 0 : getMember().hashCode());
        result = prime * result + ((getLeaderId() == null) ? 0 : getLeaderId().hashCode());
        result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
        result = prime * result + ((getLng() == null) ? 0 : getLng().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        return result;
    }

}
